﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace SmartSpace.Documents
{
    public interface IDocServices
    {
        ServiceResult SaveDocument(Document doc);
        ServiceResult DeleteDocument(Guid docId);
        ServiceResult MoveDocument(Guid docId, Guid folderId);
        SingleResult<Document> GetDocument(Guid docId);

        ServiceResult SaveFolder(Folder folder);
        ServiceResult DeleteFolder(Guid folderId);
        List<Document> GetDocsByFolderId(Guid id);
        DataTable GetAllFolders();
        Folder GetFolderById(Guid id);
    }
}
